ArcGIS Runtime SDK for WPF - Library Reference
GenerateCredentialAsync(String,Action<Credential,Exception>,GenerateTokenOptions) Method
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class > GenerateCredentialAsync Method : GenerateCredentialAsync(String,Action<Credential,Exception>,GenerateTokenOptions) Method

url
The URL.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).
Generates a token credential object asynchronously. You need to provide the service URL. This is a helper method typically called by the UI challenging the user.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub GenerateCredentialAsync( _
   ByVal url As String, _
   ByVal callback As Action(Of IdentityManager.Credential,Exception), _
   Optional ByVal generateTokenOptions As IdentityManager.GenerateTokenOptions _
) 

Parameters

url
The URL.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.